package 实验四3;

public interface DogState {
    void showState();
}

class SoftlyState implements DogState {
    @Override
    public void showState() {
        System.out.println("听主人的命令");
    }
}

class MeetEnemyState implements DogState {
    @Override
    public void showState() {
        System.out.println("狂叫，并冲向去狠咬敌人");
    }
}

class MeetFriendState implements DogState {
    @Override
    public void showState() {
        System.out.println("晃动尾巴，表示欢迎 ");
    }
}

class MeetAnotherDog implements DogState {
    @Override
    public void showState() {
        System.out.println("嬉戏");
    }
}